import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
// 解决类型报错：安装 @types/node
import path from "path";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  css: {
    preprocessorOptions: {
      scss: {
        // additionalData: '@use "@/styles/variables.scss" as *;',
        additionalData: '@import "@/styles/variables.scss";',
      },
    },
  },
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "src"),
    },
  },
});
